package com.party.core.dao.read.mall;

import com.party.common.paging.Page;
import com.party.core.dao.read.BaseReadDao;
import com.party.core.model.mall.MallCategorySiftSpec;
import com.party.core.model.mall.MallSpec;
import org.apache.ibatis.annotations.Param;
import org.springframework.stereotype.Repository;

import java.util.List;
import java.util.Map;

/**
 * 商城商品规格数据读取
 * Created by wei.li
 *
 * @date 2017/8/15 0015
 * @time 16:07
 */

@Repository
public interface MallSpecReadDao extends BaseReadDao<MallSpec> {

    List<MallSpec> webListPage(@Param("spec") MallSpec spec, @Param("params") Map<String, Object> params, Page page);

    List<MallSpec> findByCategoryId(String categoryId);

    List<MallSpec> findByName(String name);

    List<MallCategorySiftSpec> findSpecWithValues(@Param("categoryId") String categoryId);
}
